Direct models of the computational lambda-calculus
نویسنده
چکیده
We introduce direct categorical models for the computational lambda-calculus. Direct models correspond to the source level of a compiler whose target level corresponds to Moggi’s monadic models. That compiler is a generalised call-by-value CPS-transform. We get our direct models by identifying the algebraic structure on the Kleisli category that arises from a monadic model. We show that direct models draw our attention to previously inconspicuous, but important, classes of programs (e.g. central, copyable, and discardable programs), and we’ll analyse these classes exhaustively—at a general level, and for several specific computational effects. Moreover, we show that from each direct modelK we can recover the monadic model from which K arises as the Kleisli category.
منابع مشابه
Linear Logic, Monads and the Lambda Calculus
Models of intuitionistic linear logic also provide models of Moggi's computational metalanguage. We use the adjoint presentation of these models and the associated adjoint calculus to show that three translations , due mainly to Moggi, of the lambda calculus into the computational metalanguage (direct, call-by-name and call-by-value) correspond exactly to three translations , due mainly to Gira...
متن کاملDirect Models for the Computational Lambda Calculus
We give direct categorical models for the computational lambdacalculus. By ‘direct’ I mean that the model consists of one category together with operators on objects and morphisms for modelling type and program constructors, respectively. Moggi’s λC-models, for example, are not direct, because the category of program denotations is constructed as the Kleisli category of a monad. We call our mod...
متن کاملComputational Method for Fractional-Order Stochastic Delay Differential Equations
Dynamic systems in many branches of science and industry are often perturbed by various types of environmental noise. Analysis of this class of models are very popular among researchers. In this paper, we present a method for approximating solution of fractional-order stochastic delay differential equations driven by Brownian motion. The fractional derivatives are considered in the Caputo sense...
متن کاملHartley Series Direct Method for Variational Problems
The computational method based on using the operational matrix of anorthogonal function for solving variational problems is computeroriented. In this approach, a truncated Hartley series together withthe operational matrix of integration and integration of the crossproduct of two cas vectors are used for finding the solution ofvariational problems. Two illustrative...
متن کاملA Lambda Calculus for Quantum Computation
The classical lambda calculus may be regarded both as a programming language and as a formal algebraic system for reasoning about computation. It provides a computational model equivalent to the Turing machine, and continues to be of enormous benefit in the classical theory of computation. We propose that quantum computation, like its classical counterpart, may benefit from a version of the lam...
متن کامل